<?php $this->load->view('layout/header');?>
<div class="supplier-content-page">
    <div class="product-test-h5">
        <ul class="breadcrumb">
            <li><a href="javascript:;">社区管理</a></li>
            <li class="active"><a href="<?php echo site_url('tourismgoodsbase/grid')?>">意见反馈</a></li>
        </ul>
        <div class="product-view-area">
            <p>意见反馈</p>
        </div>
        <?php echo execute_alert_message();?>
        <div class="order-search">
            <form method="get" action="<?php echo site_url('feedback/grid')?>" class="form-horizontal">
                <div class="row">
                    <div class="col-lg-4">
                        <div class="form-group">
                            <label class="col-sm-4 control-label">反馈类型</label>
                            <div class="col-xs-7">
                                <select name="type" class="form-control">
                                    <option value="">全部类型</option>
                                    <?php foreach ($type as $key=>$value):?>
                                    <option value="<?php echo $key?>" <?php if($key == $this->input->get('type')):?>selected="selected"<?php endif;?>><?php echo $value;?></option>
                                    <?php endforeach;?>
                                </select>
                            </div>
                        </div>
                    </div>
                    <div class="col-lg-4">
                        <div class="form-group">
                            <label class="col-sm-4 control-label">手机号码</label>
                            <div class="col-xs-7">
                                <input type="text" name="mobile" value="<?php echo $this->input->get('mobile')?>" class="form-control" placeholder="请输入手机号码">
                            </div>
                        </div>
                    </div>
                    <div class="col-lg-4">
                        <div class="form-group">
                            <label class="col-sm-4 control-label">电子邮件</label>
                            <div class="col-xs-7">
                                <input type="text" name="email" value="<?php echo $this->input->get('email')?>" class="form-control" placeholder="请输入手机号码">
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row search-button">
                    <div class="col-lg-5">
                        <div class="form-group">
                            <label class="col-sm-4 control-label"> </label>
                            <div class="col-xs-7">
                                <button type="submit" class="btn btn-warning">搜索</button>
                                <a href="<?php echo site_url('tourismgoodsbase/grid');?>" class="btn btn-default">重置条件</a>
                            </div>
                        </div>
                    </div>
                </div>
            </form>
        </div>
        <div class="tourism-product-list">
            <div class="order-dan clearfix">
            </div>
            <?php if ($page_list->num_rows() > 0):?>
                <table class="table">
                    <thead>
                        <tr>
                            <th>用户名</th>
                            <th>反馈类型</th>
                            <th>内容</th>
                            <th>手机</th>
                            <th>邮件</th>
                            <th>图片</th>
                            <th>反馈时间</th>
                        </tr>
                    </thead>
                    <tbody>
                    <?php foreach($page_list->result() as $item):?>
                        <tr>
                            <td><?php echo $item->alias_name;?></td>
                            <td><?php echo $type[$item->type];?></td>
                            <td><?php echo $item->content;?></td>
                            <td><?php echo $item->mobile?></td>
                            <td><?php echo $item->email;?></td>
                            <td>
                                <div class="media">
                                    <?php foreach (explode(',', $item->uploads) as $v):?>
                                    <a target="_blank" href="<?php echo $this->config->show_image_url($v);?>">
                                        <img class="media-object lazy" style="max-height:120px;max-width:120px;float:left;margin-right: 2px;" src="skins/images/load.jpg" data-original="<?php echo $this->config->show_image_url($v); ?>">
                                    </a>
                                    <?php endforeach;?>
                                </div>
                            </td>
                            <td><?php echo $item->create_time?></td>
                        </tr>
                    <?php endforeach ;?>
                    </tbody>
                </table>
                <div class="your-page pagination pagination-right"><?php echo $pg_link;?></div>
            <?php else: ?>
                <div class="none-data">暂无数据</div>
            <?php endif;?>
        </div>
    </div>
</div>
<?php $this->load->view('layout/footer');?>